package com.wf.day_0611.test1;

import java.util.concurrent.Callable;

/**
 * @author mpk
 * @since 2024/6/11 17:18:40
 */
public class MyCallable implements Callable<Integer> {


    @Override
    public Integer call() throws Exception {

        int sum=0;
        for (int i = 0; i < 30; i++) {
            sum+=i;
            System.out.println(Thread.currentThread().getName()+"-->"+i);
        }
        return sum;
    }
}
